public interface CollATask
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(java.io.File file)
Adds a argument file to task.
|
void |
addDependency(java.io.File file)
Adds a dependency file to the task.
|
java.lang.Object[] |
getArguments()
Gets all argument files.
|
java.lang.String |
getClassToExecute()
Gets name of the class to run.
|
java.util.Map<java.lang.String,byte[]> |
getDependencies()
Gets a map containing dependencies in which keys are the file names.
|
java.io.File |
getFileFromResult() |
java.lang.String |
getFinalTime() |
java.lang.String |
getInitialTime() |
java.lang.String |
getMethodToExecute() |
java.lang.String |
getOwner() |
java.lang.Object |
getResult() |
byte[] |
getTask()
Gets task data as an array of bytes
|
java.lang.String |
getTaskName()
Gets task name.
|
CollATicket |
getTicket() |
java.lang.String |
getTotalTime() |
java.lang.Long |
getTotalTimeInNanoS() |
boolean |
hasTicket()
Checks if the task has a ticket to fetch a result, otherwise
the result is already included to the task.
|
boolean |
removeTicket()
Removes a ticket previously set
|
void |
setClassToExecute(java.lang.String className)
Sets the name of the class to run.
|
void |
setFinished()
Defines the task as completed
|
void |
setMethodToExecute(java.lang.String methodName)
Sets name of the method to run.
|
void |
setOwner(java.lang.String name)
Sets name of user who submitted the task.
|
void |
setResult(interfaces.kernel.JCL_result jclr)
Sets the result returned by the application, if any.
|
void |
setStarted()
Defines the task as started
|
void |
setTask(java.io.File task)
Sets a Jar file to run on the CollAHosts.
|
void |
setTaskName(java.lang.String name)
Sets task name.
|
void |
setTicket(CollATicket ticket) |
void setTaskName(java.lang.String name)
name - title of taskjava.lang.String getTaskName()
void setTask(java.io.File task)
throws java.lang.Exception
task - a Jar file containing an applicationjava.lang.Exceptionbyte[] getTask()
void setClassToExecute(java.lang.String className)
className - name of Class to be executedjava.lang.String getClassToExecute()
void setMethodToExecute(java.lang.String methodName)
methodName - name of method to run.java.lang.String getMethodToExecute()
void addDependency(java.io.File file)
throws java.lang.Exception
file - dependency filejava.lang.Exceptionjava.util.Map<java.lang.String,byte[]> getDependencies()
void addArgument(java.io.File file)
throws java.lang.Exception
file - argument file.java.lang.Exceptionjava.lang.Object[] getArguments()
throws java.lang.Exception
java.lang.Exceptionvoid setStarted()
void setFinished()
java.lang.String getTotalTime()
java.lang.String getInitialTime()
java.lang.String getFinalTime()
java.lang.Long getTotalTimeInNanoS()
void setResult(interfaces.kernel.JCL_result jclr)
throws java.lang.Exception
jclr - the result of task that is an object of JCL_result from javaCá&Lájava.lang.Exceptionjava.io.File getFileFromResult()
throws java.lang.Exception
java.lang.Exceptionjava.lang.Object getResult()
void setOwner(java.lang.String name)
name - name of user who submitted the task.java.lang.String getOwner()
boolean hasTicket()
void setTicket(CollATicket ticket)
ticket - A ticket to make the result of an application available to group members who submitted the task.CollATicket getTicket()
boolean removeTicket()